package com.gump.essay.demo.design.zszms;

/**
 * 抽象装饰器
 *
 * @auther zzc
 * @date 2020/12/9 14:44
 */
public class AbstractDecorator extends AbstractFruitSalad {

    private AbstractFruitSalad fruitSalad;

    public AbstractDecorator(AbstractFruitSalad fruitSalad) {
        this.fruitSalad = fruitSalad;
    }

    @Override
    public String remark() {
        return fruitSalad.remark();
    }

    @Override
    public int price() {
        return fruitSalad.price();
    }
}
